package com.nbcio.pm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nbcio.pm.domain.PmTeamMember;
import com.nbcio.pm.domain.bo.PmTeamMemberBo;
import com.nbcio.pm.domain.vo.PmTeamMemberVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 团队成员Mapper接口
 *
 * @author nbmade
 * @date 2025-01-15
 */
@Mapper
public interface PmTeamMemberMapper extends BaseMapper<PmTeamMember> {

    /**
     * 查询团队成员列表
     */
    List<PmTeamMemberVo> selectPmTeamMemberList(PmTeamMemberBo bo);

    /**
     * 查询团队成员列表（支持多用户ID显示）
     */
    List<PmTeamMemberVo> selectPmTeamMemberListWithUsers(PmTeamMemberBo bo);

    /**
     * 查询团队成员分页列表
     */
    IPage<PmTeamMemberVo> selectPmTeamMemberPage(Page<PmTeamMemberVo> page, @Param("bo") PmTeamMemberBo bo);

    /**
     * 查询团队成员详情
     */
    PmTeamMemberVo selectPmTeamMemberById(Long id);
}
